package com.xy.gateway.service.impl;


import java.util.List;
import java.util.Map;
import java.util.Date;
import com.xy.core.util.BeanUtil;
import com.xy.common.page.Pagination;
import com.xy.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.xy.gateway.dao.ResultmappingDao;
import com.xy.gateway.model.Resultmapping;
import com.xy.gateway.service.ResultmappingService;

@Service
@Transactional
public class ResultmappingServiceImpl extends BaseServiceImpl<Resultmapping> implements
		ResultmappingService {
	private ResultmappingDao resultmappingDao;

	public ResultmappingServiceImpl(ResultmappingDao paramAppRoleDao) {
		super(paramAppRoleDao);
		this.resultmappingDao = paramAppRoleDao;
	}

	@Override
	public boolean checkExist(String paraName, String paraValue) {
		return resultmappingDao.checkExist("Resultmapping", paraName, paraValue);
	}

	@Override
	public List<Resultmapping> getResultmapping(Map<String, Object> map) {
		return resultmappingDao.getResultmapping(map);
	}
	@Override
	public Pagination getResultmappingByPage(Map<String, Object> map, int pageNo,
			int pageSize) {
		// TODO Auto-generated method stub
		return resultmappingDao.getResultmappingByPage(map, pageNo, pageSize);
	}
	 
   @Override
	public Resultmapping save(Resultmapping resultmapping) {return super.save(resultmapping);}
}